package mall.service.impl;

import java.util.List;

import mall.bean.Product;
import mall.dao.BaseDao;
import mall.dao.ProductDao;
import mall.dao.impl.ProductDaoImpl;
import mall.service.ProductService;

public class ProductServiceImpl extends BaseServiceImpl<Product, Long> implements ProductService {

	private ProductDao productDao = new ProductDaoImpl();

	@Override
	public BaseDao<Product, Long> getDao() {
		return this.productDao;
	}

	@Override
	public List<Product> findListPage(int pageNo, int pageSize)  {
		int skip = (pageNo - 1) * pageSize;
		int take = pageSize;
		return productDao.findListPage(skip, take);
	}
	
	

}
